<template>
	<view>
		<u-navbar :autoBack="true" leftIconColor="#ffffff" title="店铺地址" :placeholder="true" bgColor="#3ACD90"  :titleStyle="{ color: '#FFFFFF', fontSize: '40rpx' }"></u-navbar>
		<view class="mt20" style="padding:20rpx 30rpx;background-color: #ffffff;display: flex;justify-content: space-between;">
			<view style="display: flex;flex-direction: column;">
				<view>店铺地址</view>
				<view class="mt10" style="font-size: 24rpx;">浙江省瑞安市啊啊啊啊</view>
			</view>
			<view @click="choosemap">
				<u-icon name="map-fill" color="#3ACD90" size=30></u-icon>
			</view>
			
			
			
		</view>
		
		<view style="position: absolute;bottom:0;width: 100%;">
			<u-button type="primary" color="#3ACD90" text="保存"></u-button>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods:{
			choosemap(){
				console.log((11111))
				uni.chooseLocation({
					success: function (res) {
						console.log('位置名称：' + res.name);
						console.log('详细地址：' + res.address);
						console.log('纬度：' + res.latitude);
						console.log('经度：' + res.longitude);
					}
				});
				
			}
		}
	}
	
</script>

<style>
</style>